package com.hb.game.pk.adpter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

public class MainFragmentListAdapter extends FragmentStatePagerAdapter {
    private List<Fragment> fragmentList;

    public MainFragmentListAdapter(FragmentManager fm, List<Fragment> fragmentList) {
        super(fm);
        this.fragmentList = fragmentList;
        this.notifyDataSetChanged();
    }

    public Fragment getItem(int position) {
        return fragmentList.get(position);
    }

    public CharSequence getPageTitle(int position) {
        return "";
    }

    public int getCount() {
        return fragmentList.size();
    }
}
